package com.konglingyuan.spring01.dao.impl;

import com.konglingyuan.spring01.dao.Pet;

public class Dog implements Pet {
	private String name;
	
	public String getName() {
		return name;
	}

	@Override
	public void eat(String food) {
		System.out.println("小狗吃" + food);
	}

	public Dog() {
		System.out.println("Dog init");
	}

	public void init() {
		System.out.println("Dog init new method");
	}
	
//	@Override
//	public String toString() {
//		return "Dog";
//	}
}
